package graph

Import Path
	github.com/K-Phoen/grabana/graph (on go.dev)

Dependency Relation
	imports 11 packages, and imported by one package

Involved Source Files graph.go
Package-Level Type Names (total 5)
/* sort by: | */
DrawMode represents a type of visualization that will be drawn in the graph (lines, bars, points) func Draw(modes ...DrawMode) Option const Bars const Lines const Points
Graph represents a graph panel. Alert *alert.Alert Builder *sdk.Panel func New(title string, options ...Option) (*Graph, error)
LegendOption allows to configure a legend. func Legend(opts ...LegendOption) Option const AsTable const Avg const Current const Hide const Max const Min const NoNullSeries const NoZeroSeries const Total const ToTheRight
NullValue describes how null values are displayed. func Null(mode NullValue) Option const AsNull const AsZero const Connected
Option represents an option that can be used to configure a graph panel. func Alert(name string, opts ...alert.Option) Option func DataSource(source string) Option func Description(content string) Option func Draw(modes ...DrawMode) Option func Fill(value int) Option func Height(height string) Option func LeftYAxis(opts ...axis.Option) Option func Legend(opts ...LegendOption) Option func LineWidth(value uint) Option func Links(panelLinks ...links.Link) Option func Null(mode NullValue) Option func PointRadius(value float32) Option func Repeat(repeat string) Option func RepeatDirection(direction sdk.RepeatDirection) Option func RightYAxis(opts ...axis.Option) Option func SeriesOverride(opts ...series.OverrideOption) Option func Span(span float32) Option func Staircase() Option func Transparent() Option func WithGraphiteTarget(query string, options ...graphite.Option) Option func WithInfluxDBTarget(query string, options ...influxdb.Option) Option func WithPrometheusTarget(query string, options ...prometheus.Option) Option func WithStackdriverTarget(target *stackdriver.Stackdriver) Option func XAxis(opts ...axis.Option) Option func New(title string, options ...Option) (*Graph, error) func github.com/K-Phoen/grabana/row.WithGraph(title string, options ...Option) row.Option
Package-Level Functions (total 25)
Alert creates an alert for this graph.
DataSource sets the data source to be used by the graph.
Description annotates the current visualization with a human-readable description.
Draw specifies how the graph will be drawn.
Fill defines the amount of color fill for a series (default 1, max 10, 0 is none).
Height sets the height of the panel, in pixels. Example: "400px".
LeftYAxis configures the left Y axis.
Legend defines what should be shown in the legend.
LineWidth defines the width of the line for a series (default 1, max 10, 0 is none).
New creates a new graph panel.
Null configures how null values are displayed.
PointRadius adjusts the size of points when Points are selected as Draw Mode.
Repeat configures repeating a panel for a variable
RepeatDirection configures repeating vertical or horizontal
RightYAxis configures the right Y axis.
SeriesOverride configures how null values are displayed. See https://grafana.com/docs/grafana/latest/panels/field-options/
Span sets the width of the panel, in grid units. Should be a positive number between 1 and 12. Example: 6.
Staircase draws adjacent points as staircase.
Transparent makes the background transparent.
WithGraphiteTarget adds a Graphite target to the table.
WithInfluxDBTarget adds an InfluxDB target to the graph.
WithPrometheusTarget adds a prometheus query to the graph.
WithStackdriverTarget adds a stackdriver query to the graph.
XAxis configures the X axis.
Package-Level Constants (total 16)
AsNull treats null values as null.
AsTable displays the legend as a table.
AsZero treats null values as zero values.
Avg displays the average of the series.
Bars will display bars.
Connected connects null values.
Current displays the current value of the series.
Hide keeps the legend from being displayed.
Lines will display lines.
Max displays the largest value of the series.
Min displays the smallest value of the series.
NoNullSeries hides series with only null values from the legend.
NoZeroSeries hides series with only 0 values from the legend.
Points will display points.
Total displays the total value of the series.
ToTheRight displays the legend on the right side of the graph.